package com.lintf.devdemo.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ system:Window
 * @ author:lin tingfeng
 * @ data:2022/10/19-14:19
 * @ package_name:com.lintf.devdemo.entity.po
 * @ project_name:DevDemo
 * @ desc:系统文件信息类
 */
@TableName("sys_file_info")
public class ISysFileInfo implements Serializable {
    private static final long serialVersionUID = -7727238808602121527L;
    private String id;
    @TableField("ref_id")
    private String refId;
    @TableField("ref_table")
    private String refTable;
    @TableField("ref_type")
    private String refType;
    @TableField("file_name")
    private String fileName;
    @TableField("file_location")
    private String fileLocation;
    @TableField("file_type")
    private String fileType;
    @TableField("upload_time")
    private LocalDateTime uploadTime;
    @TableField("upload_person")
    private String uploadPerson;
    @TableField("upload_personId")
    private String uploadPersonId;
    @TableField(
            exist = false
    )
    private String url;
    @TableField("can_down_load")
    private Integer canDownLoad;

    public ISysFileInfo() {
    }

    public String getId() {
        return this.id;
    }

    public String getRefId() {
        return this.refId;
    }

    public String getRefTable() {
        return this.refTable;
    }

    public String getRefType() {
        return this.refType;
    }

    public String getFileName() {
        return this.fileName;
    }

    public String getFileLocation() {
        return this.fileLocation;
    }

    public String getFileType() {
        return this.fileType;
    }

    public LocalDateTime getUploadTime() {
        return this.uploadTime;
    }

    public String getUploadPerson() {
        return this.uploadPerson;
    }

    public String getUploadPersonId() {
        return this.uploadPersonId;
    }

    public String getUrl() {
        return this.url;
    }

    public Integer getCanDownLoad() {
        return this.canDownLoad;
    }

    public ISysFileInfo setId(final String id) {
        this.id = id;
        return this;
    }

    public ISysFileInfo setRefId(final String refId) {
        this.refId = refId;
        return this;
    }

    public ISysFileInfo setRefTable(final String refTable) {
        this.refTable = refTable;
        return this;
    }

    public ISysFileInfo setRefType(final String refType) {
        this.refType = refType;
        return this;
    }

    public ISysFileInfo setFileName(final String fileName) {
        this.fileName = fileName;
        return this;
    }

    public ISysFileInfo setFileLocation(final String fileLocation) {
        this.fileLocation = fileLocation;
        return this;
    }

    public ISysFileInfo setFileType(final String fileType) {
        this.fileType = fileType;
        return this;
    }

    public ISysFileInfo setUploadTime(final LocalDateTime uploadTime) {
        this.uploadTime = uploadTime;
        return this;
    }

    public ISysFileInfo setUploadPerson(final String uploadPerson) {
        this.uploadPerson = uploadPerson;
        return this;
    }

    public ISysFileInfo setUploadPersonId(final String uploadPersonId) {
        this.uploadPersonId = uploadPersonId;
        return this;
    }

    public ISysFileInfo setUrl(final String url) {
        this.url = url;
        return this;
    }

    public ISysFileInfo setCanDownLoad(final Integer canDownLoad) {
        this.canDownLoad = canDownLoad;
        return this;
    }

    public String toString() {
        return "ISysFileInfo(id=" + this.getId() + ", refId=" + this.getRefId() + ", refTable=" + this.getRefTable() + ", refType=" + this.getRefType() + ", fileName=" + this.getFileName() + ", fileLocation=" + this.getFileLocation() + ", fileType=" + this.getFileType() + ", uploadTime=" + this.getUploadTime() + ", uploadPerson=" + this.getUploadPerson() + ", uploadPersonId=" + this.getUploadPersonId() + ", url=" + this.getUrl() + ", canDownLoad=" + this.getCanDownLoad() + ")";
    }
}
